package org.wzq.spring_aop;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 正则表达 匹配拦截
 */
public class Main2 {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("aopreg-config.xml");
        IStudentDao studentDao = (IStudentDao) ctx.getBean("studengAdvisor");
        studentDao.save("123","kiki");
        studentDao.update("123", "gaga");
        studentDao.delete("123", "kiki");
    }
}
